<!DOCTYPE html>
<html>
    <head>
        <!-- 页面meta -->
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>传智健康</title>
        <meta name="description" content="传智健康">
        <meta name="keywords" content="传智健康">
        <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
        <!-- 引入样式 -->
        <link rel="stylesheet" href="../plugins/elementui/index.css">
        <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
        <link rel="stylesheet" href="../css/style.css">
        <!-- 引入组件库 -->
        <script type="text/javascript" src="../js/jquery.min.js"></script>
        <script src="../js/vue.js"></script>
        <script src="../plugins/elementui/index.js"></script>
        <script src="../js/axios-0.18.0.js"></script>
        <style>
            .datatable {
                position: relative;
                box-sizing: border-box;
                -webkit-box-flex: 1;
                width: 100%;
                max-width: 100%;
                font-size: 14px;
                color: rgb(96, 98, 102);
                overflow: hidden;
                flex: 1 1 0%;
            }
            .datatable td, .datatable th {
                padding: 12px 0;
                min-width: 0;
                -webkit-box-sizing: border-box;
                box-sizing: border-box;
                text-overflow: ellipsis;
                vertical-align: middle;
                position: relative;
                text-align: left;
            }
        </style>
    </head>
    <body class="hold-transition">
        <div id="app">
            <div class="content-header">
                <h1>健康评估<small>中医体质辨识</small></h1>
                <el-breadcrumb separator-class="el-icon-arrow-right" class="breadcrumb">
                    <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
                    <el-breadcrumb-item>健康评估</el-breadcrumb-item>
                    <el-breadcrumb-item>中医体质辨识</el-breadcrumb-item>
                </el-breadcrumb>
            </div>
            <div class="app-container">
                <div class="box">
                    <div class="filter-container">
                        <el-input placeholder="姓名/档案号" v-model="pagination.queryString" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter"></el-input>
                        <el-button @click="findPage()" class="dalfBut">查询</el-button>
                    </div>
                    <el-table size="small" current-row-key="id" :data="dataList" :data="radio" stripe highlight-current-row>
                        <el-table-column type="index" width="60" align="center" label="序号"></el-table-column>
                        <el-table-column prop="member.fileNumber" width="150" label="档案号" align="center"></el-table-column>
                        <el-table-column prop="member.name" width="100" label="姓名" align="center"></el-table-column>
                        <el-table-column prop="accessDate" width="130" label="评估日期" align="center"></el-table-column>
                        <el-table-column prop="insufficie" width="80" label="阳虚质" align="center"></el-table-column>
                        <el-table-column prop="mind" width="80" label="心理健康" align="center"></el-table-column>
                        <el-table-column label="操作" align="center">
                            <template slot-scope="scope">
                                <el-button type="primary" size="mini" @click="handleCheck(scope.row)">查看</el-button>
                                <el-button size="mini" type="danger" @click="handleDelete(scope.row)">清空评估记录</el-button>
                                <el-button size="mini" type="primary" @click="handleCreate(scope.row)">新增</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                    <div class="pagination-container">
                        <el-pagination
                            class="pagiantion"
                            @current-change="handleCurrentChange"
                            :current-page="pagination.currentPage"
                            :page-size="pagination.pageSize"
                            layout="total, prev, pager, next, jumper"
                            :total="pagination.total">
                        </el-pagination>
                    </div>
                    <!-- 新增标签弹层 -->
                    <div class="add-form">
                        <el-dialog title="新增" :visible.sync="dialogFormVisible" width="95%">
                            <template>
                                <el-tabs v-model="activeName" type="card">
                                    <el-tab-pane label="体质测评" name="first">
                                        <el-form label-position="right" label-width="100px">
                                            <el-row> 请根据近一年的感觉，回答以下问题</el-row>
                                            <el-row >
                                                <el-col :span="7">1.您手脚发凉吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num1" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num1" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num1" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num1" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num1" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">2.您胃脘部、背部或腰膝部怕冷吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num2" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num2" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num2" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num2" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num2" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                            <el-col :span="7">3.您感到怕冷、衣服比别人穿得多吗？</el-col>
                                            <el-col :span="17">
                                                <template>
                                                    <el-radio v-model="radio.insufficie.num3" label="1">没有（根本不）</el-radio>
                                                    <el-radio v-model="radio.insufficie.num3" label="2">很少（有一点）</el-radio>
                                                    <el-radio v-model="radio.insufficie.num3" label="3">有时（有些）</el-radio>
                                                    <el-radio v-model="radio.insufficie.num3" label="4">经常（相当）</el-radio>
                                                    <el-radio v-model="radio.insufficie.num3" label="5">总是（非常）</el-radio>
                                                </template>
                                            </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">4.您比一般人受不了寒冷（冬天的寒冷，夏天的冷空调、电扇等）。</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num4" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num4" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num4" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num4" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num4" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">5.您比别人容易患感冒吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num5" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num5" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num5" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num5" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num5" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">6.您吃（喝）凉的东西会感到不舒服或者怕吃（喝）凉东西吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num6" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num6" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num6" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num6" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num6" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">7.你受凉或吃（喝）凉的东西后，容易腹泻（拉肚子）吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num7" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num7" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num7" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num7" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num7" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                        </el-form>
                                    </el-tab-pane>
                                    <el-tab-pane label="心理测评" name="second">
                                        <el-form label-position="right" label-width="100px">
                                            <el-row> 请根据近一年的感觉，回答以下问题</el-row>
                                            <el-row >
                                                <el-col :span="7">1.头痛</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num1" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num1" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num1" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num1" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num1" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                            <el-col :span="7">2.神经过敏，心中不踏实</el-col>
                                            <el-col :span="17">
                                                <template>
                                                    <el-radio v-model="radio.mind.num2" label="1">从无</el-radio>
                                                    <el-radio v-model="radio.mind.num2" label="2">轻度</el-radio>
                                                    <el-radio v-model="radio.mind.num2" label="3">中度</el-radio>
                                                    <el-radio v-model="radio.mind.num2" label="4">偏重</el-radio>
                                                    <el-radio v-model="radio.mind.num2" label="5">严重</el-radio>
                                                </template>
                                            </el-col>
                                        </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">3.头脑中有不必要的想法</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num3" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num3" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num3" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num3" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num3" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">4.头晕和昏倒</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num4" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num4" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num4" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num4" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num4" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">5.对异性兴趣减退</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num5" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num5" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num5" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num5" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num5" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">6.对旁人责备求全</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num6" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num6" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num6" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num6" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num6" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">7.感到别人能控制你的想法</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num7" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num7" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num7" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num7" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num7" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">8.责怪别人制造麻烦</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num8" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num8" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num8" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num8" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num8" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">9.忘记性大</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num9" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num9" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num9" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num9" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num9" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">10.担心自己的服饰整齐及仪态端正</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num10" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num10" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num10" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num10" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num10" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">11.容易烦躁和激动</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num11" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num11" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num11" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num11" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num11" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">12.胸痛</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num12" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num12" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num12" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num12" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num12" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">13.害怕空旷的场所或街道</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num13" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num13" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num13" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num13" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num13" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">14.感到自己的精力下降，活动减慢</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num14" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num14" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num14" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num14" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num14" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">15.想结束自己的生命</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num15" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num15" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num15" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num15" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num15" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">16.听到旁人听不到的声音</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num16" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num16" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num16" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num16" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num16" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">17.发抖</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num17" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num17" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num17" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num17" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num17" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">18.感到大多数人不可信任</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num18" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num18" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num18" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num18" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num18" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">19.胃口不好</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num19" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num19" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num19" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num19" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num19" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                        </el-form>
                                    </el-tab-pane>
                                </el-tabs>
                            </template>
                            <div slot="footer" class="dialog-footer">
                                <el-button @click="dialogFormVisible = false">取消</el-button>
                                <el-button type="primary" @click="handleAdd()">确定</el-button>
                            </div>
                        </el-dialog>
                    </div>

                    <!-- 编辑标签弹层 -->
                    <div class="add-form">
                        <el-dialog title="查看" :visible.sync="dialogFormVisible4Edit">
                            <template>
                                <el-tabs v-model="activeName" type="card">
                                    <el-tab-pane label="体质测评" name="first">
                                        <el-form label-position="right" label-width="100px">
                                            <el-row> 请根据近一年的感觉，回答以下问题</el-row>
                                            <el-row >
                                                <el-col :span="7">1.您手脚发凉吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num1" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num1" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num1" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num1" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num1" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">2.您胃脘部、背部或腰膝部怕冷吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num2" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num2" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num2" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num2" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num2" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">3.您感到怕冷、衣服比别人穿得多吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num3" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num3" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num3" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num3" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num3" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">4.您比一般人受不了寒冷（冬天的寒冷，夏天的冷空调、电扇等）。</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num4" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num4" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num4" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num4" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num4" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">5.您比别人容易患感冒吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num5" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num5" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num5" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num5" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num5" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">6.您吃（喝）凉的东西会感到不舒服或者怕吃（喝）凉东西吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num6" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num6" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num6" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num6" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num6" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">7.你受凉或吃（喝）凉的东西后，容易腹泻（拉肚子）吗？</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.insufficie.num7" label="1">没有（根本不）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num7" label="2">很少（有一点）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num7" label="3">有时（有些）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num7" label="4">经常（相当）</el-radio>
                                                        <el-radio v-model="radio.insufficie.num7" label="5">总是（非常）</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                        </el-form>
                                    </el-tab-pane>
                                    <el-tab-pane label="心理测评" name="second">
                                        <el-form label-position="right" label-width="100px">
                                            <el-row> 请根据近一年的感觉，回答以下问题</el-row>
                                            <el-row >
                                                <el-col :span="7">1.头痛</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num1" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num1" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num1" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num1" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num1" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">2.神经过敏，心中不踏实</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num2" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num2" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num2" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num2" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num2" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">3.头脑中有不必要的想法</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num3" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num3" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num3" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num3" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num3" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">4.头晕和昏倒</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num4" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num4" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num4" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num4" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num4" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">5.对异性兴趣减退</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num5" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num5" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num5" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num5" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num5" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">6.对旁人责备求全</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num6" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num6" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num6" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num6" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num6" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">7.感到别人能控制你的想法</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num7" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num7" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num7" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num7" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num7" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">8.责怪别人制造麻烦</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num8" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num8" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num8" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num8" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num8" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">9.忘记性大</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num9" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num9" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num9" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num9" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num9" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">10.担心自己的服饰整齐及仪态端正</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num10" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num10" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num10" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num10" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num10" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">11.容易烦躁和激动</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num11" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num11" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num11" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num11" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num11" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">12.胸痛</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num12" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num12" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num12" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num12" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num12" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">13.害怕空旷的场所或街道</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num13" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num13" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num13" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num13" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num13" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">14.感到自己的精力下降，活动减慢</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num14" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num14" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num14" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num14" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num14" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">15.想结束自己的生命</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num15" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num15" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num15" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num15" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num15" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">16.听到旁人听不到的声音</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num16" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num16" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num16" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num16" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num16" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">17.发抖</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num17" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num17" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num17" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num17" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num17" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">18.感到大多数人不可信任</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num18" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num18" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num18" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num18" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num18" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                            <hr>
                                            <el-row >
                                                <el-col :span="7">19.胃口不好</el-col>
                                                <el-col :span="17">
                                                    <template>
                                                        <el-radio v-model="radio.mind.num19" label="1">从无</el-radio>
                                                        <el-radio v-model="radio.mind.num19" label="2">轻度</el-radio>
                                                        <el-radio v-model="radio.mind.num19" label="3">中度</el-radio>
                                                        <el-radio v-model="radio.mind.num19" label="4">偏重</el-radio>
                                                        <el-radio v-model="radio.mind.num19" label="5">严重</el-radio>
                                                    </template>
                                                </el-col>
                                            </el-row>
                                        </el-form>
                                    </el-tab-pane>
                                </el-tabs>
                            </template>
                        </el-dialog>
                    </div>
                </div>
            </div>
        </div>
    </body>

    <script>

        var id;
        var vue = new Vue({
            el: '#app',
            data:{
                activeName:'first',//添加/编辑窗口Tab标签名称
                pagination: {//分页相关属性
                    currentPage: 1,
                    pageSize:10,
                    total:100,
                    queryString:null,
                },
                dataList: [{

                }
                ],//列表数据
                formData: {},//表单数据
                tableData:[],//新增和编辑表单中对应的检查项列表数据
                checkitemIds:[],//新增和编辑表单中检查项对应的复选框，基于双向绑定可以进行回显和数据提交
                dialogFormVisible: false,//控制添加窗口显示/隐藏
                dialogFormVisible4Edit:false,//控制编辑窗口显示/隐藏
                radio:{
                    insufficie:{},
                    mind:{}
                }
            },
            created() {
                this.findPage();
            },
            methods: {
                //编辑
                handleEdit() {
                },
                //添加
                handleAdd () {
                    this.dialogFormVisible=false;
                    axios.post("/HealthAccess/addAccess.do?id="+id,this.radio).then(resp=>{
                        if (resp.data.flag) {
                            this.$message({message: resp.data.message, type: 'success'});
                        }
                        else {
                            this.$message.error(resp.data.message);
                        }
                    }).finally(()=>{
                        this.findPage();
                    })
                },
                //分页查询
                findPage() {
                    var param={
                        currentPage:this.pagination.currentPage,
                        pageSize:this.pagination.pageSize,
                        queryString:this.pagination.queryString
                    }
                    axios.post("../HealthAccess/findByPage.do",param).then((resp)=>{
                        this.dataList=resp.data.rows;
                        this.pagination.total=resp.data.total;
                    });
                },
                // 重置表单
                resetForm() {
                    this.formData={};
                    this.activeName='first';
                    this.radio={
                        insufficie:{},
                        mind:{}
                    }
                },

                // 弹出添加窗口
                handleCreate(row) {
                    id=row.id;
                    this.resetForm();
                    this.dialogFormVisible = true;
                },
                // 弹出查看窗口
                handleCheck(row) {
                    this.dialogFormVisible4Edit=true;
                    this.activeName='first';
                    axios.post("/HealthAccess/checkAccess.do?id="+row.id).then(resp=>{
                        this.radio=resp.data.data;
                    })
                },
                //切换页码
                handleCurrentChange(currentPage) {
                    this.pagination.currentPage=currentPage;
                    this.findPage();
                },
                // 删除
                handleDelete(row) {

                    this.$confirm("您确定要清空评估记录吗?","提示",{type:'warning'}).then(()=>{

                        axios.post("/HealthAccess/del.do?id="+row.id).then((resp=>{
                            if (resp.data.flag){
                                this.$message({
                                    message:resp.data.message,
                                    type:"success"
                                });
                            } else {
                                this.$message.error(resp.data.message);
                            }
                        })).finally(()=>{
                            this.findPage();
                        })

                    });

                }
            }
        })
    </script>

</html>
